Skip to content

Instantly share code, notes, and snippets.

public class InvoiceGenerator
{
public Invoice GenerateInvoice(string watermarkText)
{
// ...
// Invoicy things
// ...
if (!String.IsNullOrEmpty(watermarkText))
{
WriteWatermark(invoice, watermarkText);
public class InvoiceGenerator
{
private readonly IConfigurationReader _configurationReader;
public InvoiceGenerator(IConfigurationReader configurationReader)
{
_configurationReader = configurationReader;
}
public Invoice GenerateInvoice()
public interface IConfigurationReader
{
T Get<T>(string key);
}
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace ValueTypeEquality
{
[TestClass]
public class Sample
{
[TestMethod]
public void SampleTest()