public void SutIsCommerceServiceContainer(SingletonContainer sut)
 {
     // Fixture setup
     // Exercise system
     // Verify outcome
     Assert.IsAssignableFrom<ICommerceServiceContainer>(sut);
     // Teardown
 }
 public void ResolveWillReturnResultWithCorrectRepository(SingletonContainer sut)
 {
     // Fixture setup
     // Exercise system
     var result = (ProductManagementService)sut.ResolveProductManagementService();
     // Verify outcome
     Assert.IsAssignableFrom<InMemoryProductRepository>(result.Repository);
     // Teardown
 }
 public void ResolveWillReturnCorrectType(SingletonContainer sut)
 {
     // Fixture setup
     // Exercise system
     var result = sut.ResolveProductManagementService();
     // Verify outcome
     Assert.IsAssignableFrom<ProductManagementService>(result);
     // Teardown
 }
 public void MapperIsShared(SingletonContainer sut)
 {
     // Fixture setup
     var other = (ProductManagementService)sut.ResolveProductManagementService();
     // Exercise system
     var result = (ProductManagementService)sut.ResolveProductManagementService();
     // Verify outcome
     Assert.Same(other.ContractMapper, result.ContractMapper);
     // Teardown
 }
 public void ResolveTwiceWillReturnDifferentInstances(SingletonContainer sut)
 {
     // Fixture setup
     var unexpected = sut.ResolveProductManagementService();
     // Exercise system
     var result = sut.ResolveProductManagementService();
     // Verify outcome
     Assert.NotSame(unexpected, result);
     // Teardown
 }