This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InvoiceGenerator | |
{ | |
public Invoice GenerateInvoice(string watermarkText) | |
{ | |
// ... | |
// Invoicy things | |
// ... | |
if (!String.IsNullOrEmpty(watermarkText)) | |
{ | |
WriteWatermark(invoice, watermarkText); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InvoiceGenerator | |
{ | |
private readonly IConfigurationReader _configurationReader; | |
public InvoiceGenerator(IConfigurationReader configurationReader) | |
{ | |
_configurationReader = configurationReader; | |
} | |
public Invoice GenerateInvoice() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IConfigurationReader | |
{ | |
T Get<T>(string key); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace ValueTypeEquality | |
{ | |
[TestClass] | |
public class Sample | |
{ | |
[TestMethod] | |
public void SampleTest() |
NewerOlder