public void ToDomain_WhenCalled_ReturnsContactGroup()
        {
            IContactGroupCommand sut = CreateSut();

            IContactGroup result = sut.ToDomain();

            Assert.That(result, Is.TypeOf <Domain.Contacts.ContactGroup>());
        }
        public void ToDomain_WhenCalled_ReturnsContactGroupWithNameFromCommand()
        {
            string name = _fixture.Create <string>();
            IContactGroupCommand sut = CreateSut(name: name);

            string result = sut.ToDomain().Name;

            Assert.That(result, Is.EqualTo(name));
        }
        public void ToDomain_WhenCalled_ReturnsContactGroupWithNumberFromCommand()
        {
            int number = _fixture.Create <int>();
            IContactGroupCommand sut = CreateSut(number);

            int result = sut.ToDomain().Number;

            Assert.That(result, Is.EqualTo(number));
        }