public void RemoveRoleFromProjectCommand()
        {
            var sutBuilder = new ProjectCommandBuilder <RemoveRoleFromProjectCommand>();
            var sut        = sutBuilder.Build() as RemoveRoleFromProjectCommand;

            sut.RoleGuid = Guid.NewGuid();
            sut.Execute();

            sutBuilder.ProjectMock.Verify(s => s.RemoveRoleFromProject(sut.RoleGuid), Times.Once);
        }
        public void ChangeEndDateOfProjectCommand()
        {
            var sutBuilder = new ProjectCommandBuilder <ChangeEndDateOfProjectCommand>();
            var sut        = sutBuilder.Build() as ChangeEndDateOfProjectCommand;

            sut.OriginalEndDate = DateTime.Now;
            sut.EndDate         = DateTime.Now;
            sut.Execute();

            sutBuilder.ProjectMock.Verify(s => s.ChangeEndDate(sut.EndDate, sut.OriginalEndDate), Times.Once);
        }
        public void AddRoleToProjectCommand()
        {
            var sutBuilder = new ProjectCommandBuilder <AddRoleToProjectCommand>();
            var sut        = sutBuilder.Build() as AddRoleToProjectCommand;

            sut.RoleGuid = Guid.NewGuid();
            sut.RoleName = "New Name";
            sut.Execute();

            sutBuilder.ProjectMock.Verify(s => s.AddRoleToProject(sut.RoleGuid, sut.RoleName), Times.Once);
        }
        public void RenameCommand()
        {
            var sutBuilder = new ProjectCommandBuilder <RenameProjectCommand>();
            var sut        = sutBuilder.Build() as RenameProjectCommand;

            sut.Name         = "New Name";
            sut.OriginalName = "Original Name";
            sut.Execute();

            sutBuilder.ProjectMock.Verify(s => s.Rename(sut.Name, sut.OriginalName), Times.Once);
        }