public void DefaultSetUpTest(Type testType, Type expectedBuilderType) { var builder = DomainBuilderFactory.Create(testType); Assert.NotNull(builder); Assert.IsInstanceOf(expectedBuilderType, builder); }
public void RegisterTest() { var mockBuilder = new Mock <IDomainBuilder>(); DomainBuilderFactory.Register(typeof(int), () => mockBuilder.Object); var actualBuilder = DomainBuilderFactory.Create(typeof(int)); Assert.NotNull(actualBuilder); }