public void It_can_create_new_instance() { var contextMock = new Mock <ICommandExecutionContext>(); var handler = new CreateTestingCommandHandler(); handler.Handle(new TestingCommand(ObjectId.NewUniqueId()), contextMock.Object); contextMock.Verify(x => x.Create(ObjectTypeId.Parse("4FBF64D4-96A5-4693-87ED-670E88DDD705")), Times.Once()); }
private static IEnumerable <AbstractCommand> GenerateCreateCommands(IEnumerable <ObjectId> objectIds) { return(objectIds.Select(x => new CreateObjectCommand(ObjectTypeId.Parse(objectTypeIdValue), x))); }