コード例 #1
0
        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
        }
コード例 #2
0
        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
        }