public void UpdateItem_Null_Test() { // Arrange MyDataRepositoryStub repository = new MyDataRepositoryStub(); DataDomainService dds = new DataDomainService(repository); IMyAppService appservice = new MyAppService(dds); // Act appservice.UpdateItem(null); // Assert }
public void UpdateItem_ItemNotFound_Test() { // Arrange MyDataRepositoryStub repository = new MyDataRepositoryStub(); DataDomainService dds = new DataDomainService(repository); IMyAppService appservice = new MyAppService(dds); MyDemoDTO mydto = new MyDemoDTO() { Id = 123323 }; // Act appservice.UpdateItem(mydto); // Assert }