public void WhenEntityHasNoEntityInfoAttribute_Create_ThrowsInvalidOperationException()
        {
            var organisationService = A.Fake <IOrganizationService>();

            var client = new CrmPlusPlusCustomizationClient(A.Fake <Publisher>(), A.Fake <Solution>(), organisationService);

            Assert.Throws <InvalidOperationException>(() => client.CreateEntity <EntityWithoutInfo>());
        }
        public void WhenEntityHasEntityInfoAndNameAttributes_ShouldCreateEntity()
        {
            var organisationService = A.Fake <IOrganizationService>();

            A.CallTo(() => organisationService.Execute(A <CreateEntityRequest> ._)).Returns(new CreateEntityResponse());

            var client = new CrmPlusPlusCustomizationClient(A.Fake <Publisher>(), A.Fake <Solution>(), organisationService);

            client.CreateEntity <EntityWithProperties>();
        }