public void ChangeDescriptionCommand() { var sutBuilder = new ProductCommandBuilder <ChangeDescriptionOfProductCommand>(); var sut = sutBuilder.Build() as ChangeDescriptionOfProductCommand; sut.Description = "New description"; sut.Execute(); sutBuilder.ProductMock.Verify(s => s.ChangeDescription(sut.Description), Times.Once); }
public void ChangeBusinessCaseCommand() { var sutBuilder = new ProductCommandBuilder <ChangeBusinessCaseOfProductCommand>(); var sut = sutBuilder.Build() as ChangeBusinessCaseOfProductCommand; sut.BusinessCase = "New business case"; sut.Execute(); sutBuilder.ProductMock.Verify(s => s.ChangeBusinessCase(sut.BusinessCase), Times.Once); }
public void RenameCommand() { var sutBuilder = new ProductCommandBuilder <RenameProductCommand>(); var sut = sutBuilder.Build() as RenameProductCommand; sut.OriginalName = "Old name"; sut.Name = "New name"; sut.Execute(); sutBuilder.ProductMock.Verify(s => s.Rename(sut.Name, sut.OriginalName), Times.Once); }