public void ServiceFactoryLoadAPropertyVerifyWorksCompleted() { var manualResetEvent = new ManualResetEvent(false); var viewModel = new ViewModelCompleted(factoryHelper, manualResetEvent); manualResetEvent.WaitOne(); viewModel.MainCustomer.FirstName .Should().Be(Known.Customer.Main.FirstName.ToUpper()); }
public void ServiceFactoryLoadAPropertyVerifyWorksCompleted() { var manualResetEvent = new ManualResetEvent(false); var viewModel = new ViewModelCompleted(factoryHelper, manualResetEvent); manualResetEvent.WaitOne(); viewModel.MainCustomer.FirstName .Should().Be.EqualTo(Known.Customer.Main.FirstName.ToUpper()); }
public void ServiceFactoryLoadACollectionVerifyWorksCompleted() { var manualResetEvent = new ManualResetEvent(false); var viewModel = new ViewModelCompleted(factoryHelper, manualResetEvent); var all = Known.Customer.All.Select(x => x.Id); manualResetEvent.WaitOne(); viewModel .CustomerCollection .Select(x => x.Id) .Should().BeSameAs(all); viewModel.Completed.Should().Be(all.First()); }
public void ServiceFactoryLoadACollectionVerifyWorksCompleted() { var manualResetEvent = new ManualResetEvent(false); var viewModel = new ViewModelCompleted(factoryHelper, manualResetEvent); var all = Known.Customer.All.Select(x => x.Id); manualResetEvent.WaitOne(); viewModel .CustomerCollection .Select(x => x.Id) .Should().Have.SameSequenceAs(all); viewModel.Completed.Should().Be.EqualTo(all.First()); }