public void CorrectRequireForCreate()
        {
            var factory = Substitute.For <IConnection>();
            var client  = new ProjectsClient(factory);

            var data = new Models.Requests.Project();

            client.Create(data);

            factory.Received().ExecuteRequest <Project>("projects", null, data, "project", Method.POST);
        }
Exemplo n.º 2
0
 /// <summary>
 /// To create a project.
 /// </summary>
 public Task <Project> Create(Models.Requests.Project project)
 {
     return(_connection.ExecuteRequest <Project>("projects", null, project, "project", Method.POST));
 }