public void UpdateStatus_AgentNotFound_ReturnsFalse()
        {
            //ARRANGE
            Entity.Agent("Agent1", "111", "Status1");

            SaveChanges();

            var repository = new AgentRepository();

            //ACT
            var success = repository.UpdateStatus(new AgentStatusModel
            {
                AgentId = 999,
                Status = "StatusNew"
            });

            //ASSERT
            Assert.IsFalse(success);
        }
        public void UpdateStatus_AgentStatusUpdated_ReturnsTrue()
        {
            //ARRANGE
            var agent = Entity.Agent("Agent1", "111", "Status1");

            SaveChanges();

            var repository = new AgentRepository();

            //ACT
            var success = repository.UpdateStatus(new AgentStatusModel
            {
                AgentId = agent.Id,
                Status = "StatusNew"
            });

            //ASSERT
            Assert.IsTrue(success);

            RefreshContext();

            var updatedAgent = Context.Agents.Find(agent.Id);

            Assert.That(updatedAgent.Status, Is.EqualTo("StatusNew"));
        }